﻿@model HawaiRestaurant.Models.DataContext.Drink

@{
    ViewBag.Title = "CreateDrink";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>CreateDrink</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.ui.core.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.ui.datepicker.js")" type="text/javascript"></script>
@section MyOtherJavascript {
    <script type="text/javascript">
        $(document).ready(function () {
            $('#ModifiedDate').datepicker();
        });
    </script>
}


@using (Html.BeginForm("CreateDrink", "Admin", FormMethod.Post, new { @class = "niceform" }))
   {
       @Html.ValidationSummary(true)
       <fieldset>
   
           <dl >
               <dt>
                   <label for="name">Food Name:</label>
               </dt>
               <dd>
            
                   @Html.EditorFor(model => model.Name)
                   @Html.ValidationMessageFor(model => model.Name)
               </dd>
           </dl>
              <dl >
               <dt>
                   <label for="name">Image :</label>
               </dt>
                  <dd><input type="file" name="upload" id="image" /></dd>
           </dl>

           <dl >
               <dt>
                   <label for="name">Description:</label>
               </dt>
               <dd>
            
                   @Html.EditorFor(model => model.Descriptions)

                   @Html.ValidationMessageFor(model => model.Descriptions)
               </dd>
           </dl>
           
           <dl >
               <dt>
                   <label for="name">Drink Type:</label>
               </dt>
               <dd>
                   @Html.DropDownList("DrinkTypeId",string.Empty)
                   @Html.ValidationMessageFor(model => model.DrinkTypeId) 
               </dd>
           </dl>
           
           <dl >
               <dt>
                   <label for="name">Food Unit:</label>
               </dt>
               <dd>
            
                   @Html.EditorFor(model => model.DrinkUnit)
                   @Html.ValidationMessageFor(model => model.DrinkUnit)
               </dd>
           </dl>
           
           <dl >
               <dt>
                   <label for="name">Modified Date:</label>
               </dt>
               <dd>
            
                   @Html.EditorFor(model => model.ModifiedDate)
                   @Html.ValidationMessageFor(model => model.ModifiedDate)
               </dd>
           </dl>
           <dl >
               <dt>
                   <label for="name">Standard Price:</label>
               </dt>
               <dd>
            
              @Html.EditorFor(model => model.StandardPrice)
            @Html.ValidationMessageFor(model => model.StandardPrice)
               </dd>
           </dl>
           <dl class="submit" style="margin-left: -50px">
               <dd>
                   <input id="submit" class="NFButton" type="submit" value="Submit" name="submit"> 
               </dd>
           </dl>
       </fieldset>
   }


<div>
    @Html.ActionLink("Back to List", "ListDrink")
</div>
